function oneWay(distance)
  resetRotationCount(A)
  forward(A)
  backward(B)
  repeat until activeLightReading(3) < 37 or rotationCounts(A) > distance
end
